﻿#ifndef TCPSOCKET_H
#define TCPSOCKET_H

#include <qtcpsocket.h>

class TcpIOer :  public QTcpSocket
{
  Q_OBJECT
private:
  enum PrivateSignalClass
  {
    PrivateSignal
  };
public:
  explicit TcpIOer();
  virtual ~TcpIOer();
signals:
  void signal_dataReceived(QByteArray data,TcpIOer::PrivateSignalClass=TcpIOer::PrivateSignal);
  void signal_sendData(QByteArray data,TcpIOer::PrivateSignalClass=TcpIOer::PrivateSignal);
public slots:
  void slot_sendData(QByteArray data);
public:
  void sendData(QByteArray data);
private slots:
  void slot_readData();
};

#endif // TCPSOCKET_H
